package com.csun.nusing.bean;

/**
 * 网络请求的url ClassName: UrlBean
 * 
 * @Description: TODO
 * @author fzq
 * @date 2017-10-26
 */
public class UrlBean {

	/**
	 * 外网服务器地址
	 * 内网服务器地址
	 */
	public static final String BASEURL = "http://www.51cs8.com/NursingCloud";
//	public static final String BASEURL = "http://192.168.1.100:8080/NursingCloud-0.0.1-SNAPSHOT";

	/**
	 * 登录 http://192.168.1.100:8080/NursingCloud-0.0.1-SNAPSHOT/token string
	 * username string password
	 */
	public static final String LOGINURL = BASEURL + "/token";

	/**
	 * 注册获取验证吗 /user/code string phone int codeType 获取验证码的类型；1 注册；2 修改密码； 3
	 * 修改手机号
	 */
	public static final String RESIGNCODEURL = BASEURL + "/user/code";

	/**
	 * 注册 /user/register 参数名称是否必须类型默认值描述 codekey true string
	 * key_638032工单号；在短信验证码校验结果中获取 code true string 918108 验证码；发送到指定手机号的短信验证码
	 * password true string 123456 密码；用户设置 repassword true string
	 * 123456重复密码；用户设置 clientType true number 1 客户端类型；1 web注册； 2 移动端注册
	 */
	public static final String RESIGNURL = BASEURL + "/user/register";

	/**
	 * 手机号码修改密码 user/modifyPwd code String codekey String password String
	 * repassword String
	 */
	public static final String MODIFYPSDURL = BASEURL + "/user/modifyPwd";

	/**
	 * 获取用户信息 authorization 10000_633da5bb97864fa9be3d628a0a79ec78 用户登录成功的认证信息
	 */
	public static final String USERINFOURL = BASEURL + "/user";

	// /user/updateUser
	/**
	 * /user/updateUser
	 */
	public static final String UPUSERINFOURL = BASEURL + "/user/updateUser";
	/**
	 * 健康数据 /Index/healthyShowAll authorization
	 * 10000_633da5bb97864fa9be3d628a0a79ec78
	 */
	public static final String HEALTHYSHOWURL = BASEURL
			+ "/Index/healthyShowAll";

	/**
	 * /Nursing/deviceStatusAll 获取老人状态 参数 id int
	 */
	public static final String OLDRESTINFOURL = BASEURL
			+ "/Nursing/deviceStatusAll";

	/**
	 * 修改个人信息 /user/updateUser userid realname sex int 0:女 1:男 headpicid int
	 */
	public static final String MODIFYUSERINFOURL = BASEURL + "/user/updateUser";

	/**
	 * 修改密码 /user/updatePassword userid int oldpassword String password String
	 * repassword String
	 */
	public static final String UPDATEPASSWORDURL = BASEURL
			+ "/user/updatePassword";

	// /**
	// * 查询所有警报数据
	// * alertShowAll
	// * pageNo true string 1
	// pageSize true string 10
	// */
	// public static final String ALERTSHOWALLURL = "/Alert/alertShowAll";

	/**
	 * post /Alert/iosAlertShowAll 查询所有警报数据 移动端 pageNo int pageSize int
	 */
	public static final String ALERTSHOWALLURL = BASEURL
			+ "/Alert/iosAlertShowAll";

	/**
	 * 报警反馈接口 iosAlertFeedback id true number 警报id result true number处理结果 0-未完成
	 * 1-完成 2-其他情况 evaluate true number评分星级 1-5 resultText true string处理结果描述
	 */
	public static final String ALERTFEEDBACKURL = BASEURL
			+ "/Alert/iosAlertFeedback";

	/**
	 * POST 文件上传 /Resource/ResourceAdd 请求头 authorization true
	 * 10001_b497f4aca4964ab0832bb53bcbddc97b 请求文件 File file
	 */
	public static final String FILEPOSTURL = BASEURL + "/Resource/ResourceAdd";

	/**
	 * /Nursing/historyBoxygen 血氧数据 id pageSize pageno
	 */
	public static final String HISTORYBOXYGENURL = BASEURL
			+ "/Nursing/historyBoxygen";

	/**
	 * /Nursing/historyBsugar 血糖数据
	 */
	public static final String HISTORYBSUGARURL = BASEURL
			+ "/Nursing/historyBsugar";

	/**
	 * /Nursing/historyHeartrate 心率数据
	 */
	public static final String HISTORYHEARTRATEURL = BASEURL
			+ "/Nursing/historyHeartrate";

	/**
	 * /Nursing/historyTemperature 温度数据
	 */
	public static final String HISTORYTEMPERATUREURL = BASEURL
			+ "/Nursing/historyTemperature";

	/**
	 * /Nursing/historyBpressure 血压数据
	 */
	public static final String HISTORYBPRESSUREURL = BASEURL
			+ "/Nursing/historyBpressure";

	/**
	 * /Nursing/bpressureRelation 搜索血压数据 oldmanId startTime endTime
	 */
	public static final String SEARCHBPRESSRELATIONURL = BASEURL
			+ "/Nursing/bpressureRelation";

	/**
	 * /Nursing/heartrateRelation 搜索心率数据 oldmanId startTime endTime
	 */
	public static final String SEARCHGEARTRATERELATIONURL = BASEURL
			+ "/Nursing/heartrateRelation";

	/**
	 * /Nursing/temperatureRelation 搜索温度数据 oldmanId startTime endTime
	 */
	public static final String SEARCHTEMPERATURERELATIONURL = BASEURL
			+ "/Nursing/temperatureRelation";
	/**
	 * /Nursing/boxygenRelation 搜索血氧数据 oldmanId startTime endTime
	 */
	public static final String SEARCHBLEBOXYGENRELATIONURL = BASEURL
			+ "/Nursing/boxygenRelation";

	
	/**
	 * 报警器信息
	 * selectPhoneDateByRoom
	 */
	public static final String SELECTPHONEDATEBYROOMURL = BASEURL
			+ "/Alert/selectPhoneDateByRoom";

	/**
	 * /Nursing/historyEcg
	 * 心电
	 */
	public static final String SEARCHHISTORYECGRELATIONURL = BASEURL
			+ "/Nursing/historyEcg";
	/**
	 * 获取手表数据 /Nursing/watchDevice
	 */
	public static final String WATCHDEVICEURL = BASEURL
			+ "/Nursing/watchDevice";

	/**
	 * 获取床垫的历史记录 /Nursing/mettressDevice 请求body { "oldmanId": 26, "time": "",
	 * "pageNo": "1", "pageSize": "10"}
	 */
	public static final String SLEEPHISTORYURL = BASEURL
			+ "/Nursing/mettressDevice";

	/**
	 * 获取床垫实时数据 /Nursing/realTimeSleep 参数 id
	 */
	public static final String SLEEPREALTIMEYURL = BASEURL
			+ "/Nursing/realTimeSleep";

	/**
	 * 查询单个老人的报警数据
	 */
	public static final String ALERTDEVICEURL = BASEURL
			+ "/Nursing/alertDevice";

	/**
	 * /Nursing/alertDeviceAll 报警器接口
	 */
	public static final String ALERTDEVICEALLURL = BASEURL
			+ "/Nursing/alertDeviceAll";

	/**
	 * /Alert/selectPhoneDate
	 * id 报警器数据
	 */
	public static final String ALERTSELECTPHONEDATEURL = BASEURL
			+ "/Alert/selectPhoneDate";
	
	/**
	 * /Employee/nursingByOldman 查询当前护工看护的所有老人 userid pageNo pageSize
	 */
	public static final String NURSINGBYOLDMANURL = BASEURL
			+ "/Employee/nursingByOldman";

	/**
	 * 血压上传 /DeviceData/followUpAdd 参数 :oldmanId :26 SBP : 79 DBP :104
	 */
	public static final String FOLLOWBLOODPRESSUPURL = BASEURL
			+ "/DeviceData/followUpAdd";

	/**
	 * 血氧上传 /DeviceData/boxygenAdd 参数 :oldmanId :26 boxygen : 79
	 */
	public static final String FOLLOWBLOODOXYUPURL = BASEURL
			+ "/DeviceData/boxygenAdd";

	/**
	 * 血糖上传 /DeviceData/bsugarAdd 参数 :oldmanId :26 boxygen : 79
	 */
	public static final String FOLLOWBLOODBSUGERUPURL = BASEURL
			+ "/DeviceData/bsugarAdd";

	/**
	 * 心率上传 /DeviceData/heartRateAdd 参数 :oldmanId :26 heartRate : 79
	 */
	public static final String FOLLOWHEARTRATEUPURL = BASEURL
			+ "/DeviceData/heartRateAdd";

	/**
	 * 心率上传 /DeviceData/temperatureAdd 参数 :oldmanId :26 temperature : 79
	 */
	public static final String FOLLOWTEMPERATUREUPURL = BASEURL
			+ "/DeviceData/temperatureAdd";

	/**
	 * 心电上传 /DeviceData/ecgAdd 参数 :oldmanId :26 int ECG : String RRMIN: String
	 * RRMAX String mood String hrv String timebase String gain String
	 */
	public static final String FOLLOWECGUPURL = BASEURL + "/DeviceData/ecgAdd";

	// /**
	// * 添加设备
	// * /Device/deviceAdd
	// * deviceno
	// * devicetype 设备类型 0-随访仪 1-手表 2-床垫 3-警报器
	// * deviceinfo
	// */
	// public static final String DEVICEADDURL = BASEURL+"/Device/deviceAdd";

	/**
	 * 查询设备 查询随访仪 /Device/followUpShowAll 必填 pageNO pageSize
	 */
	public static final String DEVICEFOLLOWUPSHOWURL = BASEURL
			+ "/Device/followUpShowAll";

	/**
	 * 查询手表 /Device/watchShowAll 必填 pageNO pageSize
	 */
	public static final String DEVICEWATCHSHOWURL = BASEURL
			+ "/Device/watchShowAll";

	/**
	 * 查询床垫 /Device/sleepShowAll 必填 pageNO pageSize
	 */
	public static final String DEVICESLEEPSHOWURL = BASEURL
			+ "/Device/sleepShowAll";

	/**
	 * 查询报警器 /Device/alertShowAll 必填 pageNO pageSize
	 */
	public static final String DEVICEALERTSHOWURL = BASEURL
			+ "/Device/alertShowAll";

	/**
	 * 查询老人信息 /InOut/oldManShow id 26
	 */
	public static final String OLDMANSHOWURL = BASEURL + "/InOut/oldManShow";

	// /**
	// * 修改老人信息
	// * /InOut/oldManUpdate
	// * name
	// * sex int 性别 0-男 1-女
	// * phone
	// * birthday
	// * egcontact
	// * egphone
	// * headpic int
	// * id int
	// */
	// public static final String OLDMANUPDATEURL =
	// BASEURL+"/InOut/oldManUpdate";

	/**
	 * 文件查询接口 传 file id
	 */
	public static final String FILESEARCHURL = BASEURL + "/Resource";

	// /**
	// * 文件上传接口
	// * /Resource/ResourceAdd
	// * 传文件
	// */
	// public static final String FILERESOURCEADDURL = BASEURL +
	// "/Resource/ResourceAdd";

	/**
	 * 根据设备id查询设备数据
	 * /Nursing/selectSleepById
	 */
	public static final String SEARCHSLEEPDATEBUIDURL = BASEURL + "/Nursing/selectSleepById";
	
	
	/**
	 * /Nursing/mettressDevice
	 */
	public static final String DEVICESLEEPDATASEARCHURL = BASEURL + "/Nursing/mettressDevice";

	/**
	 * 家属的老人列表查询
	 */
	public static final String FAMILYOLDERLISTURL = BASEURL + "/Family/oldmanShowAll";
	/**
	 * 家属的报警列表查询
	 */
	public static final String FAMILYALARMLISTSHOWURL = BASEURL + "/Family/oldmanAlertShowAll";

	/**
	 * 家属的设备列表查询
	 */
	public static final String FAMILYDEVICESHOWURL = BASEURL + "/Family/familyDeviceShowAll";

	/**
	 * 家属的添加老人
	 * /Family/saveOldman
	 */
	public static final String FAMILYOLDERADDURL = BASEURL + "/Family/saveOldman";

	/**
	 * 添加楼栋
	 * /Building/buildingAdd
	 */
	public static final String ADRESSBUILDADDURL = BASEURL + "/Building/buildingAdd";

	/**
	 * 添加房间
	 * /Room/roomAdd
	 */
	public static final String ADRESSROOMADDURL = BASEURL + "/Room/roomAdd";

	/**
	 * 添加床位
	 * /Bed/bedAdd
	 */
	public static final String ADRESSBEDADDURL = BASEURL + "/Bed/bedAdd";

	/**
	 * 换床
	 * /Nursing/updateBed
	 */
	public static final String ADDOLDBEDURL = BASEURL + "/Nursing/updateBed";
	/**
	 * 报警器添加
	 * /Device/alertAdd
	 */
	public static final String ADDALERTURL = BASEURL + "/Device/alertAdd";
	/**
	 * 床垫添加
	 * /Device/sleepAdd
	 */
	public static final String ADDSLEEPURL = BASEURL + "/Device/sleepAdd";
	/**
	 * 手表添加
	 * /Device/watchAdd
	 */
	public static final String ADDWATCHURL = BASEURL + "/Device/watchAdd";
	/**
	 * 随访仪添加
	 * /Device/followAdd
	 */
	public static final String ADDFOLLOWURL = BASEURL + "/Device/followAdd";

	/**
	 * Log日志上传
	 *  /logRecord/logApp
	 */
	public static final String LOGUPDATEURL = BASEURL + "/logRecord/logApp";

	/**
	 * 建议上传
	 * faq/suggestAdd
	 */
	public static final String SUGGESTADDURL = BASEURL + "/faq/suggestAdd";

	/**
	 * 版本查看
	 * AppVersion/versionShowAll
	 */
	public static final String VERSIONSHOWURL = BASEURL + "/AppVersion/versionShowAll";

	/**
	 * 客服电话
	 * faq/phoneShowAll
	 */
	public static final String PHONESHOWURL = BASEURL + "/faq/phoneShowAll";

	/**
	 * 查询单个老人信息
	 * InOut/oldManShow
	 */
	public static final String OLDERSHOWURL = BASEURL + "/InOut/oldManShow";

	/**
	 * 查询单个老人信息
	 * InOut/oldManUpdate
	 */
	public static final String OLDERUPDATEURL = BASEURL + "/InOut/oldManUpdate";

	/**
	 * 床垫绑定床位
	 * Nursing/updateMattressRelation
	 */
	public static final String updateMattressRelationURL = BASEURL + "/Nursing/updateMattressRelation";

	/**
	 * 床垫绑定床位
	 * Nursing/updateMattressRelation
	 */
	public static final String SELECTFAMILYSLEEPURL = BASEURL + "/Nursing/selectFamilySleep";

	/**
	 * Nursing/selectNoDeviceOldman
	 * 查询未绑定设备的老人
	 */
	public static final String selectNoDeviceOldmanURL = BASEURL + "/Nursing/selectNoDeviceOldman";

	/**
	 * 床垫绑定老人
	 * Bed/bedAddOne
	 */
	public static final String BEDBINDOLDERURL = BASEURL + "/Bed/bedAddOne";

	/**
	 * 设备家属解绑
	 * Family/familyDeviceRelieve
	 */
	public static final String DeviceRelieveURL = BASEURL + "/Bed/mattressDelete";

	/**
	 * 查询未绑定的床垫设备
	 * Nursing/selectFamilySleep
	 */
	public static final String nusingselectfamilyURL = BASEURL + "/Nursing/selectFamilySleep";

	/**
	 * 查询床垫有没有绑定
	 * Bed/selectDeviceOne
	 */
	public static final String SelectDeviceOneURL = BASEURL + "/Bed/selectDeviceOne";

	/**
	 * Bed/selectDeviceTwo
	 * 查询床垫有没有绑定老人
	 */
	public static final String selectDeviceTwoURL = BASEURL + "/Bed/selectDeviceTwo";

	/**
	 * 根据sn码查询床垫id
	 * Device/xSleepShowAll
	 */
	public static final String xSleepShowAllURL = BASEURL + "/Device/xSleepShowAll";

	/**
	 * Device/selectOldManByDevice
	 * 根据设备id查询老人名字
	 */
	public static final String selectOldManByDeviceURL = BASEURL + "/Device/selectOldManByDevice";
	/**
	 * getToken
	 * getToken/show
	 */
	public static final String GetVideoTokenURL = BASEURL + "/getToken/show";
	/**
	 * getToken
	 * getToken/show
	 */
	public static final String DeleteVideoURL = BASEURL + "/cameraInfo/deleteInfo";
	/**
	 * http://www.51cs8.com/NursingCloud/cameraInfo/showInfo
	 */
	public static final String VideoListURL = BASEURL + "/cameraInfo/showInfo";

	/**
	 * getToken
	 * getToken/show
	 */
	public static final String VideoAddVideoURL = BASEURL + "/cameraInfo/addInfo";

}
